﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<ZXCompany.Models.Entity.ZX_TrainList>" %>
<%@ Import Namespace="ZXCompany.DBUtil" %>
<%@ Import Namespace="ZXCompany.Models.Entity" %>
<%@ Import Namespace="System.Collections.Generic" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<%--<h2>培训系列图片列表</h2>--%>
    <%
   
        string HomeAction = Request.QueryString["action"] == null ? "" : Request.QueryString["action"].ToString();
        if (HomeAction!="add")
        { 
     %>
 
        <div class="tabtitle" style=" width:100%;">
	    <ul id="mytab1">
		    <li class="active">培训系列图片列表管理</li>
		    <li class="normal" onclick="javascript:window.location.href = '../Account/TrainList.aspx?action=add&hp_id=0';">培训系列图片列表添加</li>
            <%--onclick="javascript:window.open('ppt_list.asp?action=add','right');"--%>
	    </ul>
    </div>
    <div class="config" style=" width:100%;">
    <table class="ta" style=" text-align:center;">
      <tr>
        <th colspan="7" style="background: none repeat scroll 0% 0% rgb(102, 187, 255);"></th>
      </tr>
      <tr style=" height:20px;background: #eeeeff;"><td colspan="7"></td></tr>
      <tr style="background: #8899cc; font-size:13px; font-weight:bold; height:40px;"> 
        <td style="background: #eeeeff; width:5%"></td>
  	    <td width="8%">序号</td>
        <td width="10%">培训名称</td>
        <td width="20%">培训图片</td>
        <td width="20%">详细信息</td>
        <td width="10%">&nbsp;</td>
        <td style="background: #eeeeff; width:5%"></td>
      </tr>
      <%      
          IList<ZX_TrainList> HPImageList = ViewData["Account_TrainList"] as IList<ZX_TrainList>;
        for (int i = 0; i < HPImageList.Count; i++)
        {
    %>
      <tr> 
        <td style="background: #eeeeff; width:5%"></td>
  	    <td width="5%"><% =i +1 %></td>
        <td width="10%"><% =HPImageList[i].trainName%></td>
        <td width="30%" align="left">
            <img src="<%=HPImageList[i].trainImage %>" width="400" height="300" border="0"/>       
        </td>
        <td width="10%"><% =HPImageList[i].trainDetail%></td>
        <td width="10%" style=" color:#00f">
            <a href="TrainList.aspx?action=add&hp_id=<% =HPImageList[i].ID %>">编辑</a> |
            <a href="TrainList.aspx?action=del&hp_id=<% =HPImageList[i].ID %>" onclick="if(!confirm('确定删除该幻灯片么？'))return false;">
            删除</a> <%--HomePageImage_Del?action=del&id=--%>
        </td>
        <td style="background: #eeeeff; width:10%"></td>
      </tr>
      <%   
        }      
      %>
    </table>
    </div>
     <%
        }
        else
        { 
    %>
    <div class="tabtitle" style="width:100%;">
	    <ul id="Ul1">
		    <li class="normal" onclick="javascript:window.location.href = '../Account/TrainList.aspx';">培训系列图片列表管理</li>
		    <li class="active">培训系列图片列表添加</li>
	    </ul>
    </div> <%--onsubmit="return check_file()"--%>
    <form method="post" action="<%=VirtualPath.getVirtualPath()%>/Account/TrainList_Edit.aspx" enctype="multipart/form-data"
        id="TrainList_Edit" name="TrainList_Edit">
    <div class="config" style="width:100%;">
	    <table class="ta" >
	    <tbody>
        <tr class="tdodd">
            <th style="background: none repeat scroll 0% 0% rgb(102, 187, 255);" colspan="4">
            </th>
        </tr>
        <tr><td style="background: #eeeeff; height:20px;" colspan="4"></td></tr>
	    <tr class="tdodd">
            <td style="background: #eeeeff; width:10%"></td>
            <td style=" text-align:center; height:40px;">培训名称：</td>
            <td align="left"> 
                <input class="input_out" style="padding: 2px; width: 450px;" 
                value="<% =Model.trainName %>" name="trainName" size="40"/> <%--type="hidden"--%>
	        </td>
            <td style="background: #eeeeff; width:10%"></td>
        </tr>
	    <tr class="">
        <td style="background: #eeeeff; width:10%"></td>
            <td style=" text-align:center; width:120px; height:40px;">培训图片：</td>
            <td align="left"> 
                <input type="file" id="trainImage" size="40"
                    value="<% =Model.trainImage %>" name="trainImage"/>
	        </td>
            <td style="background: #eeeeff; width:10%"></td>
        </tr>
	    <tr>
            <td style="background: #eeeeff; width:10%"></td>
            <td style=" text-align:center; height:40px;">详细信息：</td>
            <td align="left"> 
                <%--<input class="input_out" style="padding: 2px; width: 450px;" 
                value="<% =Model.trainDetail %>" name="trainDetail" size="40" type="text"/>--%>
                <%--<textarea  style="width: 450px; height:300px;" name="trainDetail"><% =Model.trainDetail%></textarea> --%>
                <textarea class="ckeditor" cols="80" id="companyInfo" rows="10" name="trainDetail"><% =Model.trainDetail%></textarea> 
	        </td>
            <td style="background: #eeeeff; width:10%"></td>
        </tr>
        <tr>
            <td style="background: #eeeeff; width:10%"></td>
            <td></td>
            <td style=" text-align:center; height:40px;">
                <input type="submit" id="infoSave" value="保存" class="input2"/>
                <input type="hidden" value="<%=Model.ID %>" name="ID" id="ID"/>
            </td>
            <td style="background: #eeeeff; width:10%"></td>
        </tr>
        <tr><td style="background: #eeeeff; height:20px;" colspan="4"></td></tr>
	    </tbody>
        </table>
    </div>
    </form>
     <%       
    }%>
    <script type="text/javascript">
        $("#trainlist").find("td").css("border", "#bbddff solid 1px").css("background", "fefefe");
    </script>
    </asp:Content>

    <%--<h2>培训系列图片列表</h2>
    <div style="margin:0 auto; width:100% ;text-align:center;"> 
        <table id="trainlist" width ="90%" cellpadding="0" cellspacing="0" style=" height:100%;border:#bbddff solid 1px; padding:4px; background:fefefe;" >
            <tr style="background:rgb(102, 187, 255);; height:30px;">
                <td style="width:10%; font-weight:bold; font-size:14px;">培训名称</td>
                <td style="width:12%;font-weight:bold; font-size:14px;"">培训图片</td>
                <td style="width:60%;font-weight:bold; font-size:14px;"">每个培训对应的详细信息</td>
                <td></td>
            </tr>
            <tr>
                <td>咨询专家</td>
                <td><img src="../../Content/upload/export/sa.jpg" /></td>
                <td>在世界知名企业长期从事经营变革的推动工作，对企业管理方式的转变，经营方式的变革具有丰富的经验。
                从初期的担任3定5S推广运营的负责人，到基于现场管理的BMS的负责人，再到消除生产、品质及管理Loss的Lossless活动负责人，再到基于组织绩效管理的MBS负责人，以及6sigma运营推广和1P1P、TDR课题负责人，广泛而又深入地把握了现代企业管理的方法和原则，积累了丰富而又实际的操作经验。
            擅长领域：
                战略咨询：制定企业经营战略，构筑 KPI管理体系、改善体系
                6sigma：GB、BB的培养 和 基于 6sigma的课题改善活动</td>
                <td style="text-align:left"><input type="button" id="Button1" value="编辑" /><input type="button" id="Button2" value="删除" />
                </td>
            </tr>
            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td style="text-align:left">
                    <input type="button" id="infoSave" value="添加" class="input2" />
                </td>
            </tr>
        </table>
    </div>
    <script type="text/javascript">
        $("#trainlist").find("td").css("border", "#bbddff solid 1px").css("background", "fefefe");
    </script>--%>


